export const getRandomNumber = num => {
    return Math.floor(Math.random() * num)
}
export const getRandomNum = getRandomNumber

export const getRan = (max, min = 0) => {
    return Math.floor(Math.random() * (max - min + 1)) + min
}
export const getFindIdIndex = (arr, findId) => {
    console.log(arr);
    console.log(findId);

    return arr.findIndex(song => song.id === findId)
}